def assert_util(self,resp, status_code, success, code, message):
    self.assertEqual(status_code, resp.status_code)
    self.assertEqual(success, resp.json().get("success"))
    self.assertEqual(code, resp.json().get("code"))
    self.assertEqual(message, resp.json().get("message"))

# import jsonschema
# schema={
#     "type":"objsct",
#     "properties":{
#         "success":{"const":True},
#         "code":{"const":10000},
#         "msg":{"pattern":"用户名或密码错误"}
#     }
# }
#
# data={"desc": "测试02-登陆成失败：密码错误",
#     "req_body": {"mobile": "13800000002", "password": "12345611"},
#     "status_code":200,
#     "success": 0,
#     "code": 10000,
#     "msg":"用户名或密码错误"
# }
#
# res=jsonschema.validate(instance=data,schema=schema)
# print(res)